Skip to main content

CompleteMultipartUpload

Description

after uploading all data parts, the CompleteMultipartUpload API must be called to complete the Multipart Upload of the entire file.

Request Method

POST

Request Path

/apsara/route/OneRouter/CompleteMultipartUpload

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
x-oss-complete-all:yesBODYstringNoNo sample value for this parameter.specifies whether to list all parts uploaded by the current UploadId. If the x-oss-complete-all:yes is specified, OSS lists all the uploaded parts of the current UploadId, and then sorts and executes the CompleteMultipartUpload operation according to the PartNumber sequence number. Part uploaded or missing cannot be detected during the execution of CompleteMultipartUpload, so users need to ensure the integrity of Part themselves. If the x-oss-complete-all:yes is specified, the body is not allowed to be specified, otherwise an error is reported. If the x-oss-complete-all:yes is specified, the format of the response remains unchanged.
regionIdBODYstringYesNo sample value for this parameter.region id
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}